package com.xisan.practice.aop.serivce.impl;

import com.xisan.practice.aop.annotation.GlobalTime;
import com.xisan.practice.aop.serivce.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class TestServiceImpl implements TestService {
    @Override
    @GlobalTime
    public void eatCarrot() {
        System.out.println("吃萝卜");
    }

    @Override
    @GlobalTime
    public void eatCabbage() {
        System.out.println("吃白菜");
    }

    @Override
    public void eatFish() {
        System.out.println("吃鱼");
    }
}
